<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
</style>

<script>
	import {
		closeDB,
		openDB
	} from "@/api/sqlite";
	import {
		createSysTb
	} from "@/api/sys";

	export default {
		onLaunch: function() {
			openDB();
			createSysTb();
			closeDB();
			plus.screen.lockOrientation('portrait-primary');
			console.log('App Launch')
		},
		onShow: function() {
			openDB();
			console.log('App Show')
		},
		onHide: function() {
			closeDB();
			console.log('App Hide')
		}
	}
</script>
